package com.jx.driving.transmission;

import com.jx.driving.domain.GnssPackage;
import com.jx.driving.message.TimeTerminalTransmissionMessage;
import com.jx.driving.protocol.terminal.annotation.LimitedStringAnnotation;
import com.jx.driving.protocol.terminal.annotation.ObjectAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;

/**
 * 上报教练员登录
 * 
 * @author shenliuyang
 *
 *         2016年8月14日下午4:33:18
 */
@TerminalAnnotation
public class Terminal0x0101Transmission extends TimeTerminalTransmissionMessage {

    @LimitedStringAnnotation(value = 16, order = 1)
    private String coachNo;// 教练员编号
    @LimitedStringAnnotation(value = 18, order = 2)
    private String coachCard;// 教练员身份证号
    @LimitedStringAnnotation(value = 2, order = 3)
    private String drivingType;// 准教车型
    @ObjectAnnotation(order = 4)
    private GnssPackage gnss;// GNSS 数据包

    public String getCoachNo() {
	return coachNo;
    }

    public void setCoachNo(String coachNo) {
	this.coachNo = coachNo;
    }

    public String getCoachCard() {
	return coachCard;
    }

    public void setCoachCard(String coachCard) {
	this.coachCard = coachCard;
    }

    public String getDrivingType() {
	return drivingType;
    }

    public void setDrivingType(String drivingType) {
	this.drivingType = drivingType;
    }

    public GnssPackage getGnss() {
	return gnss;
    }

    public void setGnss(GnssPackage gnss) {
	this.gnss = gnss;
    }

    @Override
    public String toString() {
	StringBuilder builder = new StringBuilder();
	builder.append("Terminal0x0101Request [coachNo=").append(coachNo).append(", coachCard=").append(coachCard)
		.append(", drivingType=").append(drivingType).append(", gnss=").append(gnss).append("]");
	return builder.toString();
    }

}
